append text "\r${indent}<!-- /* Hide content from old browsers */\r${indent}"
}
set currpos [expr [getPos] + [string length $text]]
append text \r$indent
set pre(SCRIPT) "//"; set pre(STYLE) "/*"; set post(SCRIPT) ""; set post(STYLE) "*/"
if {!$htmlIsSel && ($ftype == "SCRIPT" || $ftype == "STYLE")} {append text "$pre($ftype) end hiding content from old browsers $post($ftype) -->\r$indent"}
append text [htmlCloseElem $ftype]
append text [htmlCloseCR2 $indent [selEnd]]
if {!$htmlIsSel && $HTMLmodeVars(useTabMarks)} {append text "•"}
if {$htmlIsSel} { deleteSelection }
insertText $text
if {!$htmlIsSel} {
goto $currpos
}
}
# Determines which list the current position is inside.